package symboltable; 
  
 public class Method extends Symbol { 
          
         public SymbolType ret; // The return of the method 
         public SymbolHashTable params; 
         public SymbolHashTable locals; 
  
         public Method() { 
                 type = SymbolType.METHOD; 
                 ret = SymbolType.NOT_DEF; 
                 params = new SymbolHashTable(); 
                 locals = new SymbolHashTable(); 
         } 
  
         public Method(SymbolType retType, SymbolHashTable params, SymbolHashTable locals) { 
                 type = SymbolType.METHOD; 
                 this.ret = retType; 
                 this.params = params; 
                 this.locals = locals; 
         } 
  
         public Method(SymbolType retType) { 
                 type = SymbolType.METHOD; 
                 this.ret = retType; 
                 params = new SymbolHashTable(); 
                 locals = new SymbolHashTable(); 
         } 
 }  